import { Router } from 'express';
import * as Controller from '../api/controllers/project-change.controller';

const router = Router();

router
  .route('/')
  .get(
    Controller.getProjectChanges
  );

router
  .route('/done')
  .get(
    Controller.getDoneProjectChanges
  );

router
  .route('/inprogress')
  .get(
    Controller.getInProgressProjectChanges
  );

router
  .route('/:id')
  .get(
    Controller.getProjectChangeById
  );

router
  .route('/get/:id')
  .get(
    Controller.getProjectChangeByPId
  );

router
  .route('/participate/:id')
  .get(
    Controller.getDoneProjectChangeByUser
  );

router
  .route('/')
  .post(
    Controller.addProjectChange
  );

router
  .route('/:id')
  .put(
    Controller.updateProjectChangeById
  );

router
  .route('/:id')
  .delete(
    Controller.deleteProjectChangeById
  );


export default router;